package com.drg.center.entity.enums;

public enum UserAccTypeEnum {

    GENERAL_USER(0, "普通用户"),
    SYS_MANAGER(1, "超级管理员"),
    ;

    private Integer type;
    private String desc;

    public static com.guaike.core.entity.enums.UserAccTypeEnum getByType(Integer type) {
        for (com.guaike.core.entity.enums.UserAccTypeEnum e : com.guaike.core.entity.enums.UserAccTypeEnum.values()) {
            if (e.getType().equals(type)) {
                return e;
            }
        }
        return null;
    }

    UserAccTypeEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
